
$(document).ready( function(){
    $("#rplus").click(function(){
    //var rplus = $("#rplus");
    var order = $("#rplus").attr("title");
    var newOrder = parseInt(order);
    ++newOrder;
    $("#rplus").attr("title",newOrder);
    $("<li class='registrace' id='rulice_li" + newOrder + "'>"+
        "<div id='rminus" + newOrder + "' onclick=\"removeRUlice_li('rminus" + newOrder + "')\"><img src='images/minus.png'/>"+
        "<input name='ulice" + newOrder + "' id='rulice" + newOrder + "' type='text' value=''/>" +
        "<label>Zadejte ulici, kterou chcete hlídat.</label><span id='chybaulice" + newOrder + "' class='chyba'></span></div>" +
        "</li>").insertBefore("#rplus");
    })
})
